import request from '@/router/axios';

// 获取列表
export const getList = (current, size, params) => {
  return request({
    url: '/api/hg-equipment/fixed/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}


// 保存
export const save = (data) => {
  return request({
    url: '/api/hg-equipment/fixed/setAsset',
    method: 'post',
    data: data
  })
}

// 详情
export const detail = (id) => {
  return request({
    url: '/api/hg-equipment/fixed/info',
    method: 'get',
    params: {
      id
    }
  })
}

// 资产编号二维码-转固
export const getPringInfo = (id) => {
  return request({
    url: '/api/hg-equipment/fixed/print',
    method: 'post',
    params: {
      id
    },
    responseType:'blob',
  })
}

